{{#
    var menu_List =  [
      {id:"index",href:"/",active:"",icon:"",name:"首页"},
      {id:"archives",href:"/archives",active:"",icon:"",name:"文章列表"},
      {id:"about",href:"/about",active:"",icon:"icon-guanyuwomen",name:"关于"}
    ];
}}

<div class="header">
        <nav class="navbar navbar-default">
                <div class="container-fluid">
                  <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                      <span class="sr-only">Toggle navigation</span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="/">HOMEGU</a>
                  </div>
                  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <!-- <ul class="nav navbar-nav">
                    </ul> -->
                    <ul class="nav navbar-nav navbar-right">

                      {{# menu_List.forEach(function(item, index){ }}
                         {{# if(d.curr == item.id){ 
                              item.active = "active";
                            }
                         }}
                         
                         {{# if(item.icon != ""){ }}
                            <li id="{{item.id}}" class="{{item.active}}"><a href="{{item.href}}"><i class="iconfont {{item.icon}}"></i>{{item.name}}</a>
                         {{#  }else{ }}
                            <li id="{{item.id}}" class="{{item.active}}"><a href="{{item.href}}">{{item.icon}}{{item.name}}</a>
                         {{# } }}
                          
                      {{# }); }}
                      <li id="showSearch" class=""><a href="javascript:void(0)" ><i class="iconfont icon-sousuo" style="font-size:25px"></i></a></li>
                        <!-- <li id="idnex" class="active"><a href="#">首页</a></li>
                        <li id="archives" class=""><a href="/archives">文章列表</a></li>
                        <li id="tools" class=""><a href="#">在线工具</a></li>
                        <li id="about"><a href="#"><i class="iconfont icon-guanyuwomen"></i>关于</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">查看更多<span class="caret"></span></a>
                            <ul class="dropdown-menu">
                            <li><a href="#">JAVA</a></li>
                            <li><a href="#">C#</a></li>
                            <li><a href="#">NODEjs</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">易语言</a></li>
                            </ul>
                        </li> -->
                    </ul>
                  </div>
                </div>
              </nav>
  
</div>

<div class="search">
  <form action="#" class="form-horizontal">
      <input type="text" class="form-control" id="keyword" placeholder="请输入搜索关键字">
      <a href="" class="searchBtn"><i class="iconfont icon-sousuo" style="font-size:25px"></i></a>
  </form>
</div>